//
//  MusicTableViewCell.swift
//  YYMusicDemo
//
//  Created by yuanyue on 2018/4/26.
//  Copyright © 2018年 yuanyue. All rights reserved.
//

import UIKit

class MusicTableViewCell: UITableViewCell {
    
    @IBOutlet weak var imgView: UIImageView!
    
    @IBOutlet weak var bigTitleLabel: UILabel!
    
    @IBOutlet weak var detailLabel: UILabel!
    
    var model : MusicModel? {
        didSet {
            self.imgView.image = UIImage.init(named: (model?.singerIcon)!)
            self.bigTitleLabel.text = model?.name
            self.detailLabel.text = model?.singer
        }
    }
    

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
